package com.example.day12.Presenter;

import com.example.day12.Model.MainModel;
import com.example.day12.ResultCallBack;
import com.example.day12.View.MainView;
import com.hyphenate.easeui.domain.EaseUser;

import java.util.Map;

public class MainPresenter implements ResultCallBack {
    private MainModel mMainModel;
     private MainView mainView;

    public MainPresenter(MainView mainView) {
        this.mainView = mainView;
        mMainModel=new MainModel();
    }

    @Override
    public void setContacts(Map<String, EaseUser> map) {
       mainView.setContacts(map);
    }

    @Override
    public void onFail(String msg) {

    }

    public void setData() {
        mMainModel.getData(this);
    }
}
